package com.sijibao.gather.event;

import java.io.Serializable;

public class StockCallEvent extends Event implements Serializable
{
	private static final long serialVersionUID = 2185959734370338116L;
	
	/**
	 * 用户code
	 */
	private String userCode;
	/**
	 * 货源编码
	 */
	private String stockCode;
	/**
	 * 拨打时间
	 */
	private long callTime;
	/**
	 * 定位经度
	 */
	private double longitude;
	/**
	 * 定位纬度
	 */
	private double latitude;
	/**
	 * 客户端版本号
	 */
	private int clientVersion;
	/**
	 * 手机型号如：小米
	 */
	private String mobileModel;
	/**
	 * 设备号
	 */
	private String deviceCode;

	public StockCallEvent(String stockCode, String userCode, long callTime,
			double longitude, double latitude, int clientVersion,
			String mobileModel, String deviceCode)
	{
		super(StockCallEvent.class.getName());
		this.stockCode = stockCode;
		this.userCode = userCode;
		this.callTime = callTime;
		this.longitude = longitude;
		this.latitude = latitude;
		this.clientVersion = clientVersion;
		this.mobileModel = mobileModel;
		this.deviceCode = deviceCode;
	}

	public String getStockCode()
	{
		return stockCode;
	}

	public void setStockCode(String stockCode)
	{
		this.stockCode = stockCode;
	}

	public String getUserCode()
	{
		return userCode;
	}

	public void setUserCode(String userCode)
	{
		this.userCode = userCode;
	}

	public long getCallTime()
	{
		return callTime;
	}

	public void setCallTime(long callTime)
	{
		this.callTime = callTime;
	}

	public double getLongitude()
	{
		return longitude;
	}

	public void setLongitude(double longitude)
	{
		this.longitude = longitude;
	}

	public double getLatitude()
	{
		return latitude;
	}

	public void setLatitude(double latitude)
	{
		this.latitude = latitude;
	}

	public int getClientVersion()
	{
		return clientVersion;
	}

	public void setClientVersion(int clientVersion)
	{
		this.clientVersion = clientVersion;
	}

	public String getMobileModel()
	{
		return mobileModel;
	}

	public void setMobileModel(String mobileModel)
	{
		this.mobileModel = mobileModel;
	}

	public String getDeviceCode()
	{
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode)
	{
		this.deviceCode = deviceCode;
	}

	@Override
	public String toString()
	{
		return "StockCallEvent [stockCode=" + stockCode + ", userCode="
				+ userCode + ", callTime=" + callTime + ", longitude="
				+ longitude + ", latitude=" + latitude + ", clientVersion="
				+ clientVersion + ", mobileModel=" + mobileModel
				+ ", deviceCode=" + deviceCode + "]";
	}
}
